package com.duowei.diandan.viewmodel;

import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;

import com.duowei.diandan.db.AppDatabase;
import com.duowei.diandan.db.entry.RollMessage;

import java.util.List;

public class RollMessageViewModel extends ViewModel {

    private LiveData<List<RollMessage>> mLiveData;

    public RollMessageViewModel() {
        mLiveData = AppDatabase.getDatabase().rollMessageDao().findOne2();
    }

    public LiveData<List<RollMessage>> getLiveData() {
        return mLiveData;
    }
}
